/*
 * @Author: lixiaowei
 * @Date: 2021-04-11 14:38:58
 * @LastEditors: lixiaowei
 * @LastEditTime: 2021-04-11 14:46:42
 * @Description: file content
 * @FilePath: /heima-bli/多线程/demo1.cpp
 */

#include <iostream>
#include <thread>

using namespace std;

void T1()
{
  cout << "T1 Hello" << endl;
}

void T2(const char* str)
{
  cout << "T2 " << str << endl;
}

int main()
{
  thread t1(T1);
  thread t2(T2, "Hello world");
  
  t1.join();
  t2.join();
  
  cout << "Main Hello" << endl;
  return 0;
}